home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
WINDOWS
/
BROWSER.PAS
next >
Wrap
Pascal/Delphi Source File
|
1996-08-16
|
1KB
|
36 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Demonstration; text browser
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBDEF, EFLIBINI, EFLIBDAT, EFLIBDIA, EFLIBIO, EFLIBTXT;
var MyBrowser : BrowserObjectType;
MyText : TextObjectType;
MyStream : FileStreamObjectType;
begin
with MyText do begin
Initialize;
with MyStream do begin
Initialize ('..\hamlet.txt', 1024);
MyText.StreamImport (@MyStream, 1024);
Intercept;
end;
end;
with MyBrowser do begin
InitializeBrowser (@MyText, { Resource data type }
20, 5, 60, 20, { Window settings }
StringUpperCase(FileWithoutDirectory(ParamStr(1))),
ThinBorder, TRUE, FALSE);
Loop; { Allow events (browsing until done) }
end;
MyText.Intercept; MyBrowser.Intercept;
end.